package com.cleaningcloud.cld.domain;

import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 保险管理对象 cld_insurance
 *
 * @author cleaningcloud
 * @date 2024-10-22
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CldInsurance extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 保险ID
     */
    private Long insuranceId;

    /**
     * 保险单号
     */
    @Excel(name = "保险单号")
    private String insuranceOdd;

    /**
     * 保险名称
     */
    @Excel(name = "保险名称")
    private String insuranceName;


    // 保险类型
    private Long insuranceType;

    /**
     * 保险额度
     */
    @Excel(name = "保险额度")
    private BigDecimal insuranceQuato;

    /**
     * 保险开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保险开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 保险结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保险结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 保险状态(1在保中2已过期)
     */
    @Excel(name = "保险状态(1在保中2已过期)")
    private Integer insuranceStatus;

    /**
     * 保险责任
     */
    @Excel(name = "保险责任")
    private String responsibility;

    /**
     * 赔付特约
     */
    @Excel(name = "赔付特约")
    private String agreement;

    /**
     * 满60以上
     */
    @Excel(name = "满60以上")
    private BigDecimal maxPrice;

    /**
     * 60以下
     */
    @Excel(name = "60以下")
    private BigDecimal minPrice;

    /**
     * 创建人ID
     */
    @Excel(name = "创建人ID")
    private Long createId;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createName;

    /**
     * 备注是否关闭
     */
    @Excel(name = "备注是否关闭")
    private Long flag;


}
